<?php

class IndexAction extends ApiAction {


    /**
     * 显示所有允许访问的的接口
     */
    public function index(){
        //$api = C('api');
        //var_dump($api);

        $data[] = array(
            'name'=>'kent',
            'sex'=>'1',
            'list'=>array(
                'title'=>'test111',
                'note'=>'note111'
            )
        );
        $data[] = array(
            'name'=>'yuyu',
            'sex'=>'2',
            'list'=>array(
                'title'=>'test222',
                'note'=>'note222'
            )
        );
        $this->rest($data);
    }

    /**
     * 错误信息列表
     */
    public function error_list(){
        $errorList = C('errorMsg');
        $this->rest($errorList);
    }




}